package com.sy.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@ApiModel("新增商品")
public class SaveGoods {
    @ApiModelProperty(value = "商品id")
    int id;
    @ApiModelProperty("所属商品分类")
    @NotNull(message = "商品分类不能为空")
    String categoryCode;
    @ApiModelProperty("分类名称")
    String categoryName;
    @ApiModelProperty("商品名称")
    String name;
    @ApiModelProperty("规格型号")
    String spec;
    @ApiModelProperty("商品编码")
    @NotNull(message = "商品编码不能为空")
    String code;
    @ApiModelProperty("计量单位")
    String unit;
    @ApiModelProperty("商品条码")
    String barcode;
    @ApiModelProperty("首选仓库")
    @NotNull(message = "首选仓库不能为空")
    int warehouseId;
    @ApiModelProperty("零售售价")
    double price;
    @ApiModelProperty("批发价")
    double batchPrice;
    @ApiModelProperty("vip客户价")
    double vipPrice;
    @ApiModelProperty("折扣率一")
    double rateOne;
    @ApiModelProperty("折扣率二")
    double rateTwo;
    @ApiModelProperty("预计采购价")
    double purchasePrice;
    @ApiModelProperty("是否启用分仓")
    int isWarning;
    @ApiModelProperty("最低库存")
    int lowStock;
    @ApiModelProperty("最高库存")
    int heightStock;
    @ApiModelProperty("企业id")
    int eid;
    @ApiModelProperty("仓库库存")
    List<WarehouseGoods> warehouseGoodsList;
    @ApiModelProperty("仓库名")
    List<GoodsWarehouse> goodsWarehouseList;
}
